<include file="Template:pageheader"/>

<js href="__PUBLIC__/js/listTable.js"/>
<css href="__PUBLIC__/plugs/dialog/dialog.css"/>
<js href="__PUBLIC__/plugs/dialog/dialog.js"/>

<div class="mauto">
	<div>
		<table id="mytab"  border="1" class="t1" width="100%">
			<tr class="a1">
			  <td width="30px" align="center">{$lang.number}</td>
			  <td align="center">{$lang.user_name}</td>
			  <td align="center">{$lang.comment_type}</td>
			  <td align="center">{$lang.comment_object}</td>
			  <td width="30px;">{$lang.is_show}</td>
			  <td align="center">{$lang.action}</td>
			</tr>
		   <volist name="commentlist" id="vo">
				<tr>
				  <td align="center">{$vo.comment_id}</td>
				  <td>{$vo.user_name}</td>
				  <td>{$vo.comment_type}</td>
				  <td>{$vo.id_value}</td>
				  <td>
				  		<img class="pointer" onclick="listTable.toggle(this, 'is_valid', {$vo.comment_id});" src="__PUBLIC__/image/<if condition="$vo.is_valid eq 1">bg_yes.gif<else/>bg_no.gif</if>"/>
		    	  </td>
				  <td style="text-align:center;">
					<span><a href="javascript:listTable.remove({$vo.comment_id},'确定把数据放到回收站');">删除</a></span>&nbsp;
					<span><a href="__APP__/Comment/showcomment/id/{$vo.comment_id}">查看详情</a></span>
				  </td>
				</tr>
			</volist>
		</table>
		<include file="Template:paginator"/>
	</div>
</div>

<script>	
	listTable.init("__APP__/Comment/commentAjaxTable");	
</script>



<include file="Template:pagefooter"/>
